//
//  HJPayTransferDetailItem.m
//  KaiChat
//
//  Created by lx on 2024/1/31.
//

#import "HJPayTransferDetailItem.h"

@implementation HJPayTransferDetailItem


- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        UILabel *textLabel = [UILabel lableWithSuperView:self font:UIFontMake(13) color:UIColor.tj_868391Color title:nil textAlignment:NSTextAlignmentLeft];
        [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(leftRightMargin);
            make.top.offset(2);
        }];
        
        UILabel *detailTextLabel = [UILabel lableWithSuperView:self font:UIFontMake(13) color:UIColor.tj_333333Color title:nil textAlignment:NSTextAlignmentRight];
        detailTextLabel.numberOfLines = 0;
        [detailTextLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.inset(leftRightMargin);
            make.top.offset(2);
            make.width.mas_lessThanOrEqualTo(KScreenWidth * 0.6);
        }];
        
        _detailTextLabel = detailTextLabel;
        _textLabel = textLabel;
    }
    return self;
}

- (void)didMoveToSuperview {
    [super didMoveToSuperview];
    
    [self mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.detailTextLabel.mas_bottom).inset(2);
    }];
    
}


@end
